package xml;

import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlElement;

import cuShapes.Box;
import cuShapes.Ellipse;

import java.util.List;

/**
 * Intermediary class created to give the properties of a {@link cuShapes.ShapeList ShapeList} an xml saveable form.
 * @author mylesc,varunr
 *
 */
public class ShapeListType {
	// produce a wrapper XML element around this collection
	@XmlElementWrapper(name = "boxes")
	@XmlElement(name = "box")
	private List<Box> boxes;
	// produce a wrapper XML element around this collection
	@XmlElementWrapper(name = "ellipses")
	@XmlElement(name = "ellipse")
	private List<Ellipse> ellipses;

	public ShapeListType() {}

	public ShapeListType(List<Box> boxes, List<Ellipse> ellipses) {
		this.boxes = boxes;
		this.ellipses= ellipses;
	}

    public List<Box> getBoxes() {
        return boxes;
    }
    public List<Ellipse> getEllipses() {
    	return ellipses;
    }
}